package com.zmht.beike.biz;

import java.util.List;

import com.zmht.beike.core.BaseBiz;
import com.zmht.beike.po.TImonthcontent;

public interface ImonthcontentBiz extends BaseBiz {
	/**
	 * 保存记录
	 * @param monthcontent
	 * @return
	 */
	public boolean saveTImonthcontent(TImonthcontent monthcontent);
	/**
	 * 根据id 查询
	 * @param id
	 * @return
	 */
	public TImonthcontent findById(java.io.Serializable id);
	/**
	 * 更新记录
	 * @param imonthcontent
	 * @return
	 */
	public boolean updateImonthcontent(TImonthcontent imonthcontent);
	/**
	 * 获得结果（月主题id 为空的记录）
	 * @param teacherId
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public List<TImonthcontent> getTImonthcontent(Integer teacherId,String month,int startIndex,int pageSize);
	/**
	 * 根据teacherid 获得尚未保存月主题的记录
	 * @param teacherId
	 * @return
	 */
	public int getTImonthcontentTotal(Integer teacherId,String month);
	/**
	 * 删除记录
	 * @param id
	 * @return
	 */
	public boolean delTImonthcontent(java.io.Serializable id);
	/**
	 * 编辑时获得结果
	 * @param targetId
	 * @param teacherId
	 * @param month
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public List<TImonthcontent> getTImonthcontentEdit(Integer targetId,Integer teacherId,String month,int startIndex,int pageSize);
	/**
	 * 获得结果条数
	 * @param targetId
	 * @param teacherId
	 * @param month
	 * @return
	 */
	public int getTImonthcontentEditTotal(Integer targetId,Integer teacherId,String month);
}
